﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YJ_Core.Entities.Utils;

namespace YJ_App.Applet.Dtos
{
    /// <summary>
    /// 小程序首页服务Dto
    /// </summary>
    public class AppletHomeDto
    {
        /// <summary>
        /// 发布-输入
        /// </summary>
        public class IssueTopicInput
        {
            /// <summary>
            /// 图片数组
            /// </summary>
            public List<string> Images { get; set; }

            /// <summary>
            /// 标题
            /// </summary>
            public string Title { get; set; }

            /// <summary>
            /// 描述
            /// </summary>
            public string Content { get; set; }


            /// <summary>
            /// 地点名称
            /// </summary>
            public string LocationName { get; set; }

            /// <summary>
            /// 详细地址
            /// </summary>
            public string Address { get; set; }

            /// <summary>
            /// 经度
            /// </summary>
            public double Longitude { get; set; }

            /// <summary>
            /// 纬度
            /// </summary>
            public double Latitude { get; set; }
        }

        /// <summary>
        /// 首页话题列表-输入
        /// </summary>
        public class AppletSelectHomeTopicListInput : InputPageBase
        {

        }

        /// <summary>
        /// 首页话题列表-输出
        /// </summary>
        public class AppletSelectHomeTopicListOutput
        {
            /// <summary>
            /// 话题id
            /// </summary>
            public string TopicId { get; set; }

            /// <summary>
            /// 用户id
            /// </summary>
            public string UserId { get; set; }

            /// <summary>
            /// 标题
            /// </summary>
            public string Title { get; set; }

            /// <summary>
            /// 内容描述
            /// </summary>
            public string Content { get; set; }

            /// <summary>
            /// 经度
            /// </summary>
            [Column(TypeName = "decimal(10,6)")]
            public double Longitude { get; set; }

            /// <summary>
            /// 纬度
            /// </summary>
            [Column(TypeName = "decimal(10,6)")]
            public double Latitude { get; set; }

            /// <summary>
            /// 地点名称
            /// </summary>
            public string LocationName { get; set; }

            /// <summary>
            /// 详细地址
            /// </summary>
            public string Address { get; set; }

            /// <summary>
            /// 话题状态：
            /// 0:草稿 1:已发布
            /// </summary>
            public int Status { get; set; }

            /// <summary>
            /// 审核状态：<br/>
            /// 0：待审核 <br/>
            /// 1：审核通过<br/>
            /// 2：审核不通过
            /// </summary>
            public int CheckStatus { get; set; }

            /// <summary>
            /// 图片
            /// </summary>
            public string Image { get; set; }

            /// <summary>
            /// 用户昵称
            /// </summary>
            public string NickName { get; set; }

            /// <summary>
            /// 用户名（账号）
            /// </summary>
            public string UserName { get; set; }

            /// <summary>
            /// 邮箱
            /// </summary>
            public string Email { get; set; }

            /// <summary>
            /// 头像路径
            /// </summary>
            public string HeadPortraitPath { get; set; }

            /// <summary>
            /// 点赞数量
            /// </summary>
            public long LikeCount { get; set; }

            /// <summary>
            /// 是否点赞
            /// </summary>
            public bool IsLiked { get; set; }

            /// <summary>
            /// 收藏数量
            /// </summary>
            public long CollectCount { get; set; }

            /// <summary>
            /// 浏览数量
            /// </summary>
            public long SkimThroughCount { get; set; }

            /// <summary>
            /// 分享数量
            /// </summary>
            public long ShareCount { get; set; }

            /// <summary>
            /// 创建时间
            /// </summary>
            public DateTime? CreateTime { get; set; }
        }

        /// <summary>
        /// 首页话题列表-响应
        /// </summary>
        public class AppletSelectHomeTopicListResp : ResponseStatus
        {
            public List<AppletSelectHomeTopicListOutput> List { get; set; }

            public int Total { get; set; }
        }

        /// <summary>
        /// 话题点赞-输入
        /// </summary>
        public class TopicDZInput
        {
            /// <summary>
            /// 用户id
            /// </summary>
            public string UserId { get; set; }

            /// <summary>
            /// 话题id
            /// </summary>
            public string TopicId { get; set; }

            /// <summary>
            /// 是否点赞
            /// </summary>
            public bool? IsLiked { get; set; }
        }

        /// <summary>
        /// 检验敏感词-输入
        /// </summary>
        public class AppletVerifySensitiveWordInput
        {
            /// <summary>
            /// 检验标题
            /// </summary>

            public string Title { get; set; }
            /// <summary>
            /// 检验内容
            /// </summary>
            public string Content { get; set; }
        }

        /// <summary>
        /// 存草稿-输入
        /// </summary>
        public class ExistDraftInput
        {

        }
    }
}
